package com.xiaoyu.client.ui.fragment.home_search;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.xiaoyu.client.R;

/**
 * 首页 - 搜索 -- 社区
 */
public class CommunityFragment extends Fragment {

    private View mView;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        if (mView == null){
            mView = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_community,container,false);
            initView();
        }

        ViewGroup parent = (ViewGroup) mView.getParent();
        if (parent != null){
            parent.removeView(mView);
        }
        return mView;
    }

    private void initView(){

    }
}
